import React, { Component } from 'react';
import { Link,Router,Route, IndexRoute} from 'react-router-dom';
import '../style/less/main.css';
import axios from '../api/index';
import {Button ,mountNode } from 'antd';
import NoPage from './NoPage'; 
import Butts from './Button'; 
import Echarts from './Echarts';
import Tables from './Tables';
class Content extends React.Component{
    constructor(){
        super();
        
        
    }
    componentWillMount(){
        axios.api.mockData3().then((res)=>{
            let mock = res.array;
            this.setState({
                data:mock
            })
        });
      
    }
    render(){
        return(
            <Router>
            <Route path="/" component={Tables}>
              <IndexRoute component={Tables}/>
              <Route path="main/t" component={Butts}/>
              {/* <Route path="t" component={Tables}/> */}
            </Route>
          </Router>
           )
    }
}

export default Content;